/**
 * @author Kristian Mandrup
 * @date June 10, 2009
 * @version 0.1
 * 
 * jsTree.generator :: Setup
 * 
 * - Set up the m3gen namespaces and important constants
 */

// include libs for json referencing and schema support

dojo.require("dojox.json.schema");
dojo.require("dojox.json.ref");

// create jsTree namespaces for plugin
m3gen = {};

// constants

m3gen.constants = {};


m3gen.constants.EH_NONE = 0;
m3gen.constants.EH_ERROR = 1;
m3gen.constants.EH_WARNING = 2;
m3gen.constants.EH_INFO = 3;
m3gen.constants.EH_BC = 4;

// constants.nodeType

m3gen.constants.nodeType = {};
m3gen.constants.nodeType.REFERENCE = 'REF';
m3gen.constants.nodeType.INSTANCE = 'INSTANCE';

// constants.node

m3gen.constants.node = {};
m3gen.constants.node.defaultIcon = 'node.png';
m3gen.constants.node.defaultTitle = 'No title';

// constants.branch

m3gen.constants.branch = {};
m3gen.constants.branch.defaultFolderIcon = 'folder.png';
m3gen.constants.branch.defaultFolderState = 'closed'


